package com.restauranteejb.utiles;

public class JsonData {

    private Object datos;
    private boolean success;

    public Object getDatos() {
        return datos;
    }

    public void setDatos(Object datos) {
        this.datos = datos;
    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public JsonData() {
    }

    public JsonData(Object datos) {
        this.datos = datos;
        if(datos==null){
            this.success = Boolean.FALSE;
        }else{
            this.success = Boolean.TRUE;
        }
    }
}
